package com.hotel.reservation.service.impl;

import com.hotel.reservation.dao.NoticeDao;
import com.hotel.reservation.po.NoticePo;
import com.hotel.reservation.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @version 0.1
 * @Author: oliver chen
 * @Description:
 * @Date:Create：in 2021/8/2 10:27
 * @Modified By：
 */
@Service("noticeService")
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    private NoticeDao noticeDao;
    @Override
    public List<NoticePo> selectAll() {
        return noticeDao.selectAll();
    }

    @Override
    public List<NoticePo> selectAllRoomByPage(Map<String, Object> map) {
        return noticeDao.selectAllRoomByPage(map);
    }

    @Override
    public NoticePo selectANotice(int noticeId) {
        return noticeDao.selectANotice(noticeId);
    }

    @Override
    public Integer insertANotice(NoticePo noticePo) {
        return noticeDao.insertANotice(noticePo);
    }

    @Override
    public Integer alterANotice(NoticePo noticePo) {
        return noticeDao.alterANotice(noticePo);
    }

    @Override
    public Integer deleteANotice(int noticeId) {
        return noticeDao.deleteANotice(noticeId);
    }

    @Override
    public Integer deleteNotice(List<Integer> noticeIds) {
        return noticeDao.deleteNotice(noticeIds);
    }
}
